{"version":3,"file":"menu.bundle.map.js","names":["this","BX","Landing","exports","main_core","landing_loc","landing_env","landing_main","landing_backend","landing_ui_form_menuform","landing_ui_panel_stylepanel","landing_menu_menuitem","buildTree","root","selector","parent","arguments","length","undefined","depth","babelHelpers","toConsumableArray","querySelectorAll","filter","element","parentElement","closest","map","newDepth","layout","children","makeFlatTree","tree","acc","forEach","item","push","getNodeClass","type","Block","Node","Link","Img","Icon","Embed","Map","Component","Text","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","enumerable","apply","_objectSpread","target","i","source","key","defineProperty","getOwnPropertyDescriptors","defineProperties","Menu","_Event$EventEmitter","inherits","_this","options","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","setEventNamespace","code","block","manifest","freeze","cache","Cache","MemoryCache","Env","getInstance","getType","Dom","hasClass","nextElementSibling","remove","addClass","insertAfter","getAddPageLayout","Event","bind","event","StylePanel","isShown","nodeName","preventDefault","href","attr","hrefPagePrefix","startsWith","replace","pageId","toNumber","reloadPage","createClass","value","createMenuItem","_this2","nodes","Collection","NodeCollection","entries","_ref","_ref2","slicedToArray","nodeManifest","nodeElements","nodeElement","elementParent","NodeClass","node","allowInlineEdit","menuMode","MenuItem","itemOptions","index","concat","getTree","_this3","getFlatTree","getForm","MenuForm","title","forms","getAddPageButton","_this4","remember","Tag","render","taggedTemplateLiteral","onAddPageButtonClick","Loc","getMessage","onAddPageTextInputKeydown","keyCode","addPage","_this5","input","getAddPageInput","focus","Type","isStringFilled","translit","change_case","replace_space","replace_other","backend","Backend","createPage","menuCode","blockId","then","id","li","createLi","text","append","getAddPageField","removeClass","main","Main","url","getLandingEditorUrl","landing","reloadSlider","_this6","onAddPageInputCloseButtonClick","getAddPageInputCloseButton","_this7","getAddPageInputApplyButton","_this8","onAddPageInputApplyButtonClick","_this9","_this10","prepend","createList","items","_this11","ulClassName","createA","aClassName","encode","liClassName","rebuild","newList","EventEmitter","UI","Form","Panel"],"sources":["menu.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,GACrC,SAAUC,EAAQC,EAAUC,EAAYC,EAAYC,EAAaC,EAAgBC,EAAyBC,EAA4BC,GACtI,aAEA,SAASC,EAAUC,EAAMC,GACvB,IAAIC,EAASC,UAAUC,OAAS,GAAKD,UAAU,KAAOE,UAAYF,UAAU,GAAK,KACjF,IAAIG,EAAQH,UAAUC,OAAS,GAAKD,UAAU,KAAOE,UAAYF,UAAU,GAAK,EAChF,OAAOI,aAAaC,kBAAkBR,EAAKS,iBAAiBR,IAAWS,QAAO,SAAUC,GACtF,OAAOA,EAAQC,cAAcC,QAAQZ,KAAcC,CACrD,IAAGY,KAAI,SAAUH,GACf,IAAII,EAAWT,EAAQ,EACvB,MAAO,CACLU,OAAQL,EACRM,SAAUlB,EAAUY,EAASV,EAAUU,EAASI,GAChDT,MAAOA,EAEX,GACF,CAEA,SAASY,EAAaC,GACpB,IAAIC,EAAMjB,UAAUC,OAAS,GAAKD,UAAU,KAAOE,UAAYF,UAAU,GAAK,GAC9EgB,EAAKE,SAAQ,SAAUC,GACrBF,EAAIG,KAAKD,GACTJ,EAAaI,EAAKL,SAAUG,EAC9B,IACA,OAAOA,CACT,CAEA,SAASI,EAAaC,GACpB,GAAIA,IAAS,OAAQ,CACnB,OAAOrC,GAAGC,QAAQqC,MAAMC,KAAKC,IAC/B,CAEA,GAAIH,IAAS,MAAO,CAClB,OAAOrC,GAAGC,QAAQqC,MAAMC,KAAKE,GAC/B,CAEA,GAAIJ,IAAS,OAAQ,CACnB,OAAOrC,GAAGC,QAAQqC,MAAMC,KAAKG,IAC/B,CAEA,GAAIL,IAAS,QAAS,CACpB,OAAOrC,GAAGC,QAAQqC,MAAMC,KAAKI,KAC/B,CAEA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